package gateway.server.route;

import gateway.api.annotation.GatewayType;

/**
 * @author Jin Zheng
 * @since 1.0 2020-09-23
 */
public class RouteItem<T>
{
	private String name;
	private T target;
	private GatewayType type;
	private boolean async;

	public RouteItem(String name)
	{
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public T getTarget()
	{
		return target;
	}

	public void setTarget(T target)
	{
		this.target = target;
	}

	public GatewayType getType()
	{
		return type;
	}

	public void setType(GatewayType type)
	{
		this.type = type;
	}

	public boolean isAsync()
	{
		return async;
	}

	public void setAsync(boolean async)
	{
		this.async = async;
	}
}
